﻿<TDialog>
    <ChildContent>这里是提示</ChildContent>
    <FooterContent>
        <TButton Varient="ButtonVarient.Dashed" OnClick="@(e => Context.Confirm("对话框已经关闭"))">关闭这个对话框</TButton>
    </FooterContent>
</TDialog>

@code {
    [CascadingParameter] DialogContext Context { get; set; }
}
